package com.mq.mqserver.core;
/*
* 表示队列和交换机之间的关联关系*/
public class Binding {
    private String exchangeName;
    private String queueName;
    //就是在出题，要求领红包的人要画一个桌子
    private String bindingKey;
    //Binding依附于Exchange和Queue的

    //比如：对于持久化来说，如果Exchange和Queue的任何一个没有持久化，
    // 那么针对Binging的持久化没有意义


    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public void setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
    }
}
